from PySide6.QtWidgets import (
    QApplication,
    QMainWindow,
    QPushButton,
    QLabel,
    QWidget,
    QLineEdit,
)
from PySide6.QtCore import Qt
import sys
import os

current_dir = os.path.dirname(os.path.abspath(__file__))
# 将当前目录和子目录添加到 sys.path 中
sys.path.append(current_dir)
sys.path.append(os.path.join(current_dir, "ui"))
from login import Ui_widget


class Window(QWidget, Ui_widget):
    def __init__(self):
        super().__init__()
        self.setupUi(self)


if __name__ == "__main__":
    app = QApplication([])
    window = Window()
    window.show()
    app.exec()
